home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvstddlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-05  |  3.0 KB  |  105 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVSTDDLG.H                           |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     Standard dialog boxes interface      |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. uint test_file_exist( char *path );
  16.   //return cmYES, cmNO, or cmCANCEL
  17.  
  18. uint get_file( char *title, char *result );
  19.   //0    - no file selected, or cancel;
  20.   //1    - file is selected, call again for more selected files
  21.   //cmOK - single file specified
  22.  
  23. Tdialog *action( char *txt, ... );
  24.   //display an action window
  25.  
  26. void done_action( void );
  27.   //close the action window
  28.  
  29. void ok( char *txt, ... );
  30.   //OK message box
  31.  
  32. boolean kc( char *txt, ... );
  33.   //OK/Cancel message box
  34.  
  35. boolean kch( char *txt, ... );
  36.   //OK/Cancel/Help message box
  37.  
  38. boolean yn( char *txt, ... );
  39.   //Yes/No message box
  40.  
  41. boolean ynh( char *txt, ... );
  42.   //Yes/No/Help message box
  43.  
  44. uint ync( char *txt, ... );
  45.   //Yes/No/Cancel message box
  46.  
  47. uint ynch( char *txt, ... );
  48.   //Yes/No/Cancel/Help message box
  49.  
  50. boolean ra( char *txt, ... );
  51.   //Retry/Abort message box
  52.  
  53. boolean rah( char *txt, ... );
  54.   //Retry/Abort/Help message box
  55.  
  56. boolean drive_error( int drv );
  57.   //Not ready
  58.  
  59.  
  60. //PREFIXES
  61.  
  62. void _new_file( void );      boolean __new_file( void );
  63.   //specify get_file to ask for overwrite if file exist
  64.  
  65. void _multi_files( void );   boolean __multi_files( void );
  66.   //enables get_file multiple files selection feature
  67.  
  68. void _filters( char *f );    char *__filters( void );
  69.   //specify filters for get_file: "Type1 (*.xt1)|Type2 (*.xt2)|..."
  70.  
  71. void _get_file_svd( char *get_file_dir, uint &get_file_filter );
  72.                              void __get_file_svd( char **get_file_dir, uint **get_file_filter );
  73.   //specify global buffers for saving selected dir and filter for get_file
  74.  
  75. void _title( char *t );      char *__title( void );
  76.   //specify title for the message box
  77.  
  78. void _tmessage( void );
  79.   //select 'Message' title for the message box
  80.  
  81. void _terror( void );
  82.   //select 'Error' title for the message box
  83.  
  84. void _tconfirm( void );
  85.   //select 'Confirm' title for the message box
  86.  
  87. void _iwarning( void );      char __icon( void );
  88.   //select 'Warning' title for the message box
  89.  
  90. void _iquestion( void );
  91.   //select '?' icon for the message box
  92.  
  93. void _iinfo( void );
  94.   //select 'i' icon for the message box
  95.  
  96. void _inothing( void );
  97.   //disable icon for the message box (default icon is '!')
  98.  
  99.  
  100. #ifdef DECLARE_PVSTDDLG
  101. boolean con_messages = 1; //if(con_messages) msg boxes print to stdout
  102. #else
  103. extern boolean con_messages;
  104. #endif
  105.